package com.github.ecbp.user.service.vo;

import com.github.ecbp.common.resp.BaseVO;
import com.github.ecbp.user.service.response.PermissionRes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel
@Data
public class MenuPageVo extends BaseVO {

    /**
     * 父级ID
     */
    @ApiModelProperty("父级ID")
    private Long parentId;

    /**
     * 菜单名称
     */
    @ApiModelProperty("菜单名称")
    private String title;

    /**
     * 菜单级数
     */
    @ApiModelProperty("菜单级数")
    private Integer level;

    /**
     * 菜单排序
     */
    @ApiModelProperty("菜单排序")
    private Integer sort;

    /**
     * 前端名称
     */
    @ApiModelProperty("前端名称")
    private String name;

    private String systemType;

    private String systemTypeName;

    private List<PermissionRes> permissions;

    @ApiModelProperty("是否含有子菜单")
    private Boolean hasSub;
}
